package caj.springboot.model.dto.log;

import caj.springboot.model.Paginate;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.experimental.SuperBuilder;

import java.util.Date;

/**
 * @description: 分页搜索log的参数类
 * @author: CAJ
 * @time: 2023/12/7 16:59
 */
@Data
@SuperBuilder
@AllArgsConstructor
@NoArgsConstructor
public class LogSearchDTO extends Paginate {

    @ApiModelProperty("操作类型")
    private String operatorType;

    /**
     * 开始时间大于等于
     */
    @ApiModelProperty("开始时间大于等于")
    private Date startDateGe;

    /**
     * 开始时间小于等于
     */
    @ApiModelProperty("开始时间小于等于")
    private Date startDateLe;

    /**
     * ASC or DESC
     */
    @ApiModelProperty("排序方式，ASC或DESC")
    private String order;

    /**
     * 通过具体属性进行排序
     */
    @ApiModelProperty("排序属性")
    private String orderBy;

}
